package com.ruoyi.tb.lmt.service;

import com.ruoyi.tb.lmt.domain.TbWorkcategory;
import com.ruoyi.tb.lmt.domain.vo.TbWorkcategoryVo;
import com.ruoyi.tb.lmt.domain.bo.TbWorkcategoryBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 检修类别Service接口
 *
 * @author ruoyi
 * @date 2023-11-30
 */
public interface ITbWorkcategoryService {

    /**
     * 查询检修类别
     */
    TbWorkcategoryVo queryById(Long ID);

    /**
     * 查询检修类别列表
     */
    TableDataInfo<TbWorkcategoryVo> queryPageList(TbWorkcategoryBo bo, PageQuery pageQuery);

    /**
     * 查询检修类别列表
     */
    List<TbWorkcategoryVo> queryList(TbWorkcategoryBo bo);

    /**
     * 新增检修类别
     */
    Boolean insertByBo(TbWorkcategoryBo bo);

    TbWorkcategory insertByBoRVo(TbWorkcategoryBo bo);

    /**
     * 修改检修类别
     */
    Boolean updateByBo(TbWorkcategoryBo bo);

    /**
     * 校验并批量删除检修类别信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    List<TbWorkcategory> treeBylmtType(String lmtType);

    int copyBylmtType(Map<String, String> lmtTypeMap);

    int removeByTree(String id);

    String selectIdByPidAndName(String id, String workKind, String lmtType);
}
